You can create a corner, or non-curving anchor, at any point on a curve with the Corner button (keyboard shortcut CTRL+5). Lines that pass through non-curving anchors lose their curvature.
You can also create a corner at the end of a line to remove a curve on a line.